#at first type on ur terminal that $(uname -r) then u will get the version..
# that is using on ur system

obj-m += epoll_demo.o

KDIR =/lib/modules/$(shell uname -r)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
	g++ epoll_test.cc -o epoll_test -pthread

test:
	insmod ./epoll_demo.ko

endtest:
	rmmod epoll_demo

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
	rm epoll_test
